if exist dashboard.png (
 set Name=erpSystem
 set GitName=erp-update
) else (
 set Name=erpScreen
 set GitName=erp-screen-update
)
if exist "%Name%_temp" (
   rd /s /q "%Name%_temp"
)
git clone "https://gitee.com/lovezhang/%GitName%.git" "c:/%Name%_temp"
timeout /t 1 >nul
xcopy "c:/%Name%_temp"  "c:/%Name%" /i /e /y /s /q
timeout /t 1 >nul
if exist "c:/%Name%_temp" (
 rd /s /q "c:/%Name%_temp"
)
if exist "c:/%Name%/.git" (
 rd /s /q "c:/%Name%/.git"
)
pause
